package com.lw.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 角色和菜单关联表 实体类。
 *
 * @author lw
 * @since 2025年05月19日 08:21:49
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "角色和菜单关联表")
@Table("tb_role_menu")
public class TbRoleMenu implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
    @Id
    @Schema(description = "角色ID")
    private Long roleId;

    /**
     * 菜单ID
     */
    @Id
    @Schema(description = "菜单ID")
    private Long menuId;

}
